package flexulous.view;

import java.awt.Dimension;

import javax.swing.Icon;
import javax.swing.JButton;

public class IconButton extends JButton {
    public IconButton(Icon icon, String toolTip) {
        super(icon);
        
        this.setMaximumSize(
            new Dimension(icon.getIconWidth(), icon.getIconHeight())
        );
        
        this.setToolTipText(toolTip);
        this.setBorderPainted(false);
    }
}
